local more1__shiren_card_active = fk.CreateSkill {
  name = "more1__shiren_card_active",
}

Fk:loadTranslationTable{
  ["more1__shiren_card_active"] = "",
}

more1__shiren_card_active:addEffect("active", {
  min_card_num = function (self, player)
    local hmax = 0
    for _, p in ipairs(Fk:currentRoom().alive_players) do
      if p.kingdom == "shu" then
        hmax = hmax + 1
      end
    end
    return hmax
  end,
  card_filter = function(self, player, to_select, selected)
    local hmax = 0
    for _, p in ipairs(Fk:currentRoom().alive_players) do
      if p.kingdom == "shu" then
        hmax = hmax + 1
      end
    end
    return Fk:getCardById(to_select).color == Card.Red 
  end,
  min_target_num = 1,
  max_target_num = function (self, player)
    local hmax = 0
    for _, p in ipairs(Fk:currentRoom().alive_players) do
      if p.kingdom == "shu" then
        hmax = hmax + 1
      end
    end
    return hmax
  end,
  target_filter = function (self, player, to_select, selected, selected_cards)

    return true
  end,
})

return more1__shiren_card_active
